<?
    require_once("mvc/action/ActionForm.php");
    require_once("mvc/action/ActionMessage.php");
    require_once("mvc/action/ActionMessages.php");



    class BaseAbstractListForm extends ActionForm {

        protected $order;
        protected $direction;
        protected $items;
        protected $action;
        protected $page;
        protected $results;
        protected $query;
        protected $filter;
        protected $id;
        protected $language;
        protected $parameter;

        public function __construct() {
            $this->order = null;
            $this->direction = null;
            $this->items = array();
            $this->action = null;
            $this->page = 0;
            $this->results = 20;
            $this->query = null;
            $this->filter = null;
            $this->id = null;
            $this->language = null;
            $this->parameter = null;
        }

        public function getOrder() {
            return $this->order;
        }

        public function setOrder($order) {
            $this->order = $order;
        }

        public function getDirection() {
            return $this->direction;
        }

        public function setDirection($direction) {
            $this->direction = $direction;
        }

        public function getItems() {
            return $this->items;
        }

        public function setItems($items) {
            $this->items = $items;
        }

        public function getAction() {
            return $this->action;
        }

        public function setAction($action) {
            $this->action = $action;
        }

        public function getPage() {
            return $this->page;
        }

        public function setPage($page) {
            $this->page = $page;
        }

        public function getResults() {
            return $this->results;
        }

        public function setResults($results) {
            $this->results = $results;
        }

        public function getQuery() {
            return $this->query;
        }

        public function setQuery($query) {
            $this->query = $query;
        }

        public function getFilter() {
            return $this->filter;
        }

        public function setFilter($filter) {
            $this->filter = $filter;
        }

        public function getId() {
            return $this->id;
        }

        public function setId($id) {
            $this->id = $id;
        }

        public function getLanguage() {
            return $this->language;
        }

        public function setLanguage($language) {
            $this->language = $language;
        }

        public function getParameter() {
            return $this->parameter;
        }

        public function setParameter($parameter) {
            $this->parameter = $parameter;
        }

        public function validate() {

            $errors = new ActionMessages();

            return $errors;
        }

    }
?>